package com.fanshe.demo01;

import java.io.InputStream;
import java.net.URL;
import java.util.Properties;

public class Demo01 {
    public static void main(String[] args) {
        ClassLoader classLoader = ClassLoader.getSystemClassLoader();
        InputStream resourceAsStream = classLoader.getResourceAsStream("prop.properties");
        Properties prop = new Properties();
        prop.clone();
        System.out.println("--------------------");
        URL resource = classLoader.getResource("prop.properties");
        String path = resource.getPath();
        System.out.println(path);

    }
}
